package com.dgut.coal.dao;

import com.dgut.coal.entity.Margin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MarginDao {
    List<Margin> findAllByParam(@Param("marginType") Integer marginType, @Param("bill_number") String bill_number, @Param("supplier_name") String supplier_name, @Param("marginState") Integer marginState);
    List<Margin> findAllAuditByParam(@Param("bill_number") String bill_number, @Param("supplier_name") String supplier_name);
    Margin findMarginById(@Param("marginId") Integer marginId);
    void marginThaw(@Param("marginId") Integer marginId, @Param("remark") String remark);
    void marginAudit(@Param("marginId") Integer marginId,@Param("state") Integer state);
}
